<template>
  <div class="home-re">
    <div v-for="(item,index) in recommends" :key="index" class="items">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div class="text">{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeRecommendView',
  props:{
    recommends:{
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style>
  .home-re{
    display: flex;
    width: 100%;
    text-align: center;
    padding-top: 10px;
    box-shadow: 0 10px 10px rgba(100,100,100,.1);
  }
  .items{
    flex: 1;
  }
  .items img{
    max-width: 90%;
  }
  .text{
    color: MediumBlue;
    font-size: 13px;
    font-weight: bold;
    margin: 10px 0;
  }
</style>